package com.resume.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: 梁云亮
 * @Date: 2021/7/17 10:14
 * @Describe:标签表
 */
@ApiModel(value = "标签表：Tags")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_tags")
public class Tags implements Serializable {
    private static final long serialVersionUID = -1996178643425485988L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 类别编号
     */
    @TableField(value = "pid")
    @ApiModelProperty(value = "类别编号")
    private Integer pid;
}